package com.mop.mapper;

import com.mop.pojo.Reward;
import com.mop.vo.SysResult;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;


public interface RewardMapper {



    void addReward(Reward reward);
    @Select("select count(1) from reward ")
    long findCount();

    List<Reward> findRewardLimit(@Param("query")String query,
                                 @Param("start")int start,
                                 @Param("size")int size);
@Delete(" delete from reward where id=#{id}")
    void deleteReward(Reward reward);
}
